package co.com.claro.servicio.util;

import co.com.claro.servicio.od.CatalogoOd;

import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Manuel Serrano
 * Date: 25/07/13
 * Time: 05:28 PM
 * To change this template use File | Settings | File Templates.
 */
public class test {

    public static void main (String [] str){
        Class clase = CatalogoOd.class;
        Method[] atributos = clase.getMethods();
        List<String> tabMenu=new ArrayList<String>();
        for (Method dato : atributos){
            if(dato.getName().indexOf("get")==0){
                System.out.println(dato.getName().substring(3,dato.getName().length()));
                tabMenu.add(dato.getName().substring(3,dato.getName().length()).toLowerCase());
            }
        }

        tabMenu.remove(tabMenu.size()-1);
        for(String tab:tabMenu){

            System.out.println("list: " + tab);
        }



    }

}

